<template>
  <div id="app">
    <el-container>
       <el-header>
         <left-menu></left-menu>
         <span class="sy-title">监控预警后台管理中心</span>
       </el-header>

       <!-- <el-aside> -->

       <!-- </el-aside> -->

       <el-container>
         <el-main>
            <router-view/>
         </el-main>
       </el-container>
    </el-container>
  </div>
</template>

<script>
import leftMenu from '@/components/menu/LeftMenu';
export default {
  name: 'App',
  data () {
    return {
      msg:'点我',
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }]
    }
  },
  components: {
    leftMenu
  },
  created:function(){
    console.log("create...")
  },
  mounted:function(){
    console.log("mounted...")
  }
};
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

body {
  background-image: url('/static/img/back4.jpg');
}

.sy-title {
  position: relative;
  top: -60px;
  /* left: 800px; */
  font-size: 20px;
}

.el-header, .el-footer {
  /* background-color: #B3C0D1; */
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  /* background-color: #D3DCE6; */
  overflow: hidden;
  color: #333;
  text-align: center;
}

.el-main {
  /* background-color: #E9EEF3; */
  color: #333;
  text-align: center;
  overflow: hidden;
}
.el-menu {
  border-right-style: none;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
